<?php
namespace php\geo\googlemaps;

class ImageSize {
    private $width = 200;
    private $height = 200;

    public function __construct($width, $height) {
        $this->width = $width;
        $this->height = $height;
    }

    public function asString() {
        return sprintf("%dx%d", $this->width, $this->height);
    }

    public function setHeight($height) {
        $this->height = $height;
    }

    public function getHeight() {
        return $this->height;
    }

    public function setWidth($width) {
        $this->width = $width;
    }

    public function getWidth() {
        return $this->width;
    }
}
